package com.wwb.w0428;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity2 extends AppCompatActivity {
TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        textView=findViewById(R.id.textView);

        Intent intent=getIntent();

        String number=intent.getStringExtra("number");
        String name=intent.getStringExtra("name");
        String sex=intent.getStringExtra("sex");
        String hobby=intent.getStringExtra("hobby");

        //String res = intent.getDataString();
        textView.setText(number+name+sex+hobby);
        //System.out.println(res);
    }
}